//
//  LDSTableViewModel.h
//  LDSMVVMBase
//
//  Created by kai_leedarson on 2017/9/30.
//  Copyright © 2017年 maple_leedarson. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "LDSTableViewCellViewModel.h"
#import "LDSBaseTableViewCell.h"
#import "LDSViewModel.h"
#import "LDSBaseView.h"

@protocol LDSTableViewModelDelegate <NSObject>
- (void)lds_tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface LDSTableViewModel : NSObject
@property(nonatomic, weak)  id<LDSTableViewModelDelegate> delegate;
- (void)handleWithTable:(UITableView *)tableView;
- (void)handleWithDataSource:(NSMutableArray *)dataSource;
- (void)handleWithSectionDataSoure:(NSMutableArray *)sectionDataSource;

@property(nonatomic, assign) CGFloat firstSectionHeadViewHeight;
@property(nonatomic, assign) CGFloat otherSectionHeadViewHeight;
@property(nonatomic, assign) CGFloat firstSectionFootViewHeight;
@property(nonatomic, assign) CGFloat otherSectionFootViewHeight;
@end
